package annotationDemo;

import java.util.List;

public class TestAnnotation {
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public static void main(String[] args) {
		System.out.println("start");
		Parent c = new Child();
		List<FieldMetaUtil> list = c.init();// 获取泛型中类里面的注解
		// 输出结果
		for (FieldMetaUtil l : list) {
			System.out.println("字段名称：" + l.getName() + "\t字段类型：" + l.getType() + "\t注解名称：" + l.getMeta().name()
					+ "\t注解描述：" + l.getMeta().description());
		}
	}
}
